import {WmPack} from '@njt/wms/defs/work/pack'
import {WmLblConfig} from '@njt/wms/defs/lbl/lblConfig'

export interface PickLineInfoForCollect {
  //拣货明细ID
  pickLineId: number
  //拣货状态
  pickState: string | null
  //该拣货明细是否能进行集货
  isAbleToCollect: boolean
  //该拣货明细对应的CaseId
  caseId: string | null
  //该拣货明细对应的Pack下已集货的容器号（可能为空，多笔取第一笔）
  collectContainer: string | null
  //该拣货明细对应pack下所有的拣货明细数量
  packPickLinesCount: number
  //该拣货明细对应pack下已经集货的拣货明细数量
  collectedPackPickLinesCount: number,
  isAllowFillTheLabel: boolean
}

export interface CollectByPdaReq {
  //箱号
  caseId: string | null
  //表示一箱集货完成，这时候可能需要打印标签，同时返回PackInfoForNlpPrint和LblConfigs
  isPackCollectedDone: boolean
  //IsPackCollectedDone 为true时，查出这个信息返回给前端，用于输出到NLP的打印
  packInfoForNlpPrint: WmPack
  //相关打印标签信息
  lblConfigs: WmLblConfig[]
}
